<template>
  <div class="addEditPatient addEditPage">
    <amsp-card class="cardsBox" title="患者基本信息">
      <el-form class="baseForm" ref="baseForm" :model="form" :rules="RULES"  label-position="left" label-width="80px" @submit.native.prevent>
        <el-row :gutter="20">
          <el-col :span="8">
            <el-form-item label="姓名" :prop="KEYS.key1">
              <el-input placeholder="请输入姓名" v-model="form[KEYS.key1]"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="性别" :prop="KEYS.key2">
              <el-radio-group v-model="form[KEYS.key2]">
                <el-radio label="男"></el-radio>
                <el-radio label="女"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="年龄" :prop="KEYS.key3">
              <el-input placeholder="请输入年龄" v-model="form[KEYS.key3]"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="8">
            <el-form-item label="身份证号" :prop="KEYS.key4">
              <el-input placeholder="请输入身份证号" v-model="form[KEYS.key4]"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="联系电话" :prop="KEYS.key5">
              <el-input placeholder="请输入联系电话" v-model="form[KEYS.key5]"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </amsp-card>
    <div class="baseFormBtns">
      <el-button round @click="$router.back()">取消</el-button>
      <el-button round type="primary" @click="$router.push({name: 'addPatient'})">新增</el-button>
    </div>
  </div>
</template>

<script>
import {KEYS_RULES_MIXIN, KEYS} from './component/keys.js'
export default {
  components: {
  },
  mixins: [KEYS_RULES_MIXIN],
  // provide () {
  //   return {
  //     vMain: this
  //   }
  // },
  data() {
    return {
      form: {

      }
    };
  },
  computed:{
  },
  created() {
  },
  mounted() {
  },
  methods:{
  },
  beforeDestroy() {
  },
}
</script>

<style lang="less">
.addEditPatient {
  padding: 20px;
  .cardsBox {
    height: calc(100% - 74px);
  }
}
</style>
